﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace BuscoPre.Repository.MLA.JsonTypes
{

    public class Address
    {

        private JObject __jobject;
        public Address(JObject obj)
        {
            this.__jobject = obj;
        }

        public string StateId
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "state_id"));
            }
        }

        public string StateName
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "state_name"));
            }
        }

        public string CityId
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "city_id"));
            }
        }

        public string CityName
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "city_name"));
            }
        }

        public string AreaCode
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "area_code"));
            }
        }

        public string Phone1
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "phone1"));
            }
        }

    }
}
